#!/usr/bin/env python


import sys

from bin_parser import BinParser, BinParseFunctions


class Prince(BinParseFunctions):
    def min(self, data):
        return super(Prince, self).int(data) - 1


    def sec(self, data):
        return super(Prince, self).int(data) // 12

